namespace C1.Win.C1FlexGrid
{
    using System;
    using System.Runtime.InteropServices;

    [StructLayout(LayoutKind.Sequential)]
    public struct HitTestInfo
    {
        public readonly int Row;
        public readonly int Column;
        public readonly int X;
        public readonly int Y;
        public readonly HitTestTypeEnum Type;
        internal HitTestInfo(int x, int y, int row, int col, HitTestTypeEnum type)
        {
            this.Row = (row < 0) ? -1 : row;
            this.Column = (col < 0) ? -1 : col;
            this.X = x;
            this.Y = y;
            this.Type = type;
        }
    }
}

